#include "FoGGEDEF.h"
#include "PredefinedEngineSystemMessages.h"
#include "MessageManager.h"

namespace _FOGGE_
{
	namespace _PMESSAGE_// predefined messages
	{
		namespace _ENGINE_SYSTEM_
		{
			////////////////////Implementation PESM_WIndowCreated////////////
			FoImplementRegisterFuntion(PESM_WIndowCreated,::_FOGGE_::_MSG_::Message,ePESM_WIndowCreated);
			void PESM_WIndowCreated::ClearData()
			{
				m_hWnd =NULL;
				m_bFullScreen=false;

				m_WindowSize.cx=m_WindowSize.cy=0;
		
			}
			////////////////////////////////////////////////////////////////////

			////////////////////Implementation PESM_WIndowCreated_Return////////////
			FoImplementRegisterFuntion(PESM_WIndowCreated_Return,::_FOGGE_::_MSG_::Message,ePESM_WIndowCreated_Return);
			void PESM_WIndowCreated_Return::ClearData()
			{
				m_ptrD3D=NULL;
				m_ptr3DDevice=NULL;
				
				m_MessageType=::_FOGGE_::_MSG_::eMT_MulticastMSGDontCare;
				m_hRenderWindow=NULL;

			}
			///////////////////////////////////////////////////////////////



			////////////////////Implementation PESM_WindowResized////////////
			FoImplementRegisterFuntion(PESM_WindowResized,::_FOGGE_::_MSG_::Message,ePESM_WindowResized);
			void PESM_WindowResized::ClearData()
			{
				m_MessageType=::_FOGGE_::_MSG_::eMT_MulticastMSGDontCare;
				m_NewWindowSize.cx=m_NewWindowSize.cy=0;
			}
			///////////////////////////////////////////////////////////////


			////////////////////Implementation PESM_Activate////////////
			FoImplementRegisterFuntion(PESM_Activate,::_FOGGE_::_MSG_::Message,ePESM_Activate);
			void PESM_Activate::ClearData()
			{
				m_MessageType=::_FOGGE_::_MSG_::eMT_MulticastMSGDontCare;
				m_bActive=false;
			}
			///////////////////////////////////////////////////////////////

			////////////////////Implementation PESM_ExitProgram////////////
			FoImplementRegisterFuntion(PESM_ExitProgram,::_FOGGE_::_MSG_::Message,ePESM_ExitProgram);
			///////////////////////////////////////////////////////////////


			////////////////////Implementation PESM_D3DDeviceResetBefore////////////
			FoImplementRegisterFuntion(PESM_D3DDeviceResetBefore,::_FOGGE_::_MSG_::Message,ePESM_D3DDeviceResetBefore);
			///////////////////////////////////////////////////////////////

			////////////////////Implementation PESM_D3DDeviceResetAfter////////////
			FoImplementRegisterFuntion(PESM_D3DDeviceResetAfter,::_FOGGE_::_MSG_::Message,ePESM_D3DDeviceResetAfter);
			///////////////////////////////////////////////////////////////


			////////////////////Implementation PESM_D3DDeviceLosted////////////
			FoImplementRegisterFuntion(PESM_D3DDeviceLosted,::_FOGGE_::_MSG_::Message,ePESM_D3DDeviceLosted);
			///////////////////////////////////////////////////////////////


			
		}
	}
}